package thesis.database;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * This class use for Route object.
 * 
 * @author La Duy Khang - Dinh Tran Ly Hung -Tang Thi Phuong Linh
 * @version 1.0
 */
public class Route implements Serializable {
	private int id;
	private int taxiId;
	private int status;
	private String longitude;
	private String latitude;
	private double speed;
	private Timestamp time;
	private String gpsData;

	public Route(int id, int taxiId, int status, String longitude,
			String latitude, double speed, Timestamp time, String gpsData) {
		this.id = id;
		this.taxiId = taxiId;
		this.status = status;
		this.longitude = longitude;
		this.latitude = latitude;
		this.speed = speed;
		this.time = time;
		this.gpsData = gpsData;
	}

	public Route() {
		this.id = -1;
		this.taxiId = -1;
		this.status = -1;
		this.longitude = "";
		this.latitude = "";
		this.speed = -1.0;
		this.time = new Timestamp((new Date().getTime()));
		this.gpsData = "";
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getTaxiId() {
		return taxiId;
	}

	public void setTaxiId(int taxiId) {
		this.taxiId = taxiId;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public double getSpeed() {
		return speed;
	}

	public void setSpeed(double speed) {
		this.speed = speed;
	}

	public Timestamp getTime() {
		return time;
	}

	public void setTime(Timestamp time) {
		this.time = time;
	}

	public String getGpsData() {
		return gpsData;
	}

	public void setGpsData(String gpsData) {
		this.gpsData = gpsData;
	}

}
